﻿using Services.Interfaces;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace Auditiac.Controllers
{
    public class HomeController : Controller
    {
        private ILoginServices _iLoginServices;
        public HomeController(ILoginServices iLoginServices)
        {
            _iLoginServices = iLoginServices;
        }

        public ActionResult Index()
        {
            ViewBag.Message = "Modify this template to jump-start your ASP.NET MVC application.";

            if (_iLoginServices.test1() == 1)
            {
                return null;
            }

            return View();
        }

        public ActionResult About()
        {
            ViewBag.Message = "Your app description page.";

            return View();
        }

        public ActionResult Contact()
        {
            ViewBag.Message = "Your contact page.";

            return View();
        }

        public ActionResult Introduction()
        {
            ViewBag.Message = "Introduction page.";

            return View("~/Views/Introduction/Introduction.cshtml");
        }

        public ActionResult News()
        {
            ViewBag.Message = "News page.";

            return View("~/Views/News/News.cshtml");
        }

        public ActionResult Career()
        {
            ViewBag.Message = "Career page.";

            return View("~/Views/Career/Career.cshtml");
        }

        public ActionResult Admin()
        {
            ViewBag.Message = "Login page.";

            return View("~/Views/Account/Login.cshtml");
        }
    }
}
